﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace EcoSystem
{
    /// <summary>
    /// 数据源配置Api添加或更新的DTO
    /// </summary>
    public class CreateOrUpdateReportCategoryConfigDto
    {
        /// <summary>
        /// 类别
        /// </summary>
        [Required(ErrorMessage = "请选择报表模块分类大类别")]
        public ReportCategoryTypeEnum Type { get; set; }

        /// <summary>
        /// 上级ID
        /// </summary>
        public Nullable<Guid> ParentId { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        [Required(ErrorMessage = "请输入分类名称")]
        public string Name { get; set; }

        /// <summary>
        /// 启用状态
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
    }
}
